<%--
  Created by IntelliJ IDEA.
  User: Admin
  Date: 2016/8/23
  Time: 19:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <style type="text/css">
        p {color: red}
    </style>
</head>
<body>

您一共买了${sessionScope.ShoppingCart.bookNumber} 件商品
<br>
应付: ${ sessionScope.ShoppingCart.totalMoney} 元
<br><br>
<c:if test="${!empty requestScope.error}">
    <p>${requestScope.error}</p>
</c:if>
<br><br>

<form action="/cash/cash" method="post">
    <table cellpadding="10">
        <tr>
            <td>信用卡姓名:</td>
            <td><input placeholder="username" name="username" value="${param.username}"></td>
        </tr>
        <tr>
            <td>信用卡帐号:</td>
            <td><input placeholder="accountId" name="accountId" value="${param.accountId}"></td>
        </tr>
        <tr>
            <td><input type="submit" value="提交"></td>
            <td><a href="/shopping/list">返回修改购物车</a></td>
        </tr>
    </table>
</form>

</body>
</html>
